function SrvEventHeed(params){ 
	 
}

SrvEventHeed.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new SrvEventHeed.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new SrvEventHeed.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new SrvEventHeed.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	
	
	/** 编号 [非空]       **/
	this.sehId=function(sehId){if(this.proxy)return this.getProxy().sehId(sehId);  this.put("sehId", sehId);return this;};
	/** and seh_id is null */
	this.sehIdNull=function(){if(this.proxy)return this.getProxy().sehIdNull();if(this.get("sehIdNot")==null)this.put("sehIdNot", "");this.put("sehId", null);return this;};
	/** not .... */
	this.sehIdNot=function(){if(this.proxy)return this.getProxy().sehIdNot();this.put("sehIdNot", "not");return this;};
	this.sehIdNotNull=function(){if(this.proxy)return this.getProxy().sehIdNotNull();this.put("sehIdNot", "not");this.put("sehId", null);return this;};
	this.sehIdNot=function(sehId){if(this.proxy)return this.getProxy().sehIdNot(sehId);this.put("sehIdNot", "not");this.put("sehId", sehId);return this;};
		
	/** and seh_id <= ? */
	this.sehIdMin=function(min){if(this.proxy)return this.getProxy().sehIdMin(min);this.put("sehIdMin", min);return this;};
	/** and seh_id >= ? */
	this.sehIdMax=function(max){if(this.proxy)return this.getProxy().sehIdMax(max);this.put("sehIdMax", max);return this;};
		
		
	this.sehIdIn=function(ids){
		if(this.proxy)return this.getProxy().sehIdIn(ids);  this.put("sehIdIn", ids);return this;
	};	
		 
	
	
	/** 事件类型 [非空] [SrvEventType]      **/
	this.sehEventType=function(sehEventType){if(this.proxy)return this.getProxy().sehEventType(sehEventType);  this.put("sehEventType", sehEventType);return this;};
	/** and seh_event_type is null */
	this.sehEventTypeNull=function(){if(this.proxy)return this.getProxy().sehEventTypeNull();if(this.get("sehEventTypeNot")==null)this.put("sehEventTypeNot", "");this.put("sehEventType", null);return this;};
	/** not .... */
	this.sehEventTypeNot=function(){if(this.proxy)return this.getProxy().sehEventTypeNot();this.put("sehEventTypeNot", "not");return this;};
	this.sehEventTypeNotNull=function(){if(this.proxy)return this.getProxy().sehEventTypeNotNull();this.put("sehEventTypeNot", "not");this.put("sehEventType", null);return this;};
	this.sehEventTypeNot=function(sehEventType){if(this.proxy)return this.getProxy().sehEventTypeNot(sehEventType);this.put("sehEventTypeNot", "not");this.put("sehEventType", sehEventType);return this;};
		
		
	this.sehEventTypeIn=function(ids){
		if(this.proxy)return this.getProxy().sehEventTypeIn(ids);  this.put("sehEventTypeIn", ids);return this;
	};	
		 
	
	
	/** 关注人 [非空] [SrvUser]     /admin/permissions/user.query.do **/
	this.sehHeedUser=function(sehHeedUser){if(this.proxy)return this.getProxy().sehHeedUser(sehHeedUser);  this.put("sehHeedUser", sehHeedUser);return this;};
	/** and seh_heed_user is null */
	this.sehHeedUserNull=function(){if(this.proxy)return this.getProxy().sehHeedUserNull();if(this.get("sehHeedUserNot")==null)this.put("sehHeedUserNot", "");this.put("sehHeedUser", null);return this;};
	/** not .... */
	this.sehHeedUserNot=function(){if(this.proxy)return this.getProxy().sehHeedUserNot();this.put("sehHeedUserNot", "not");return this;};
	this.sehHeedUserNotNull=function(){if(this.proxy)return this.getProxy().sehHeedUserNotNull();this.put("sehHeedUserNot", "not");this.put("sehHeedUser", null);return this;};
	this.sehHeedUserNot=function(sehHeedUser){if(this.proxy)return this.getProxy().sehHeedUserNot(sehHeedUser);this.put("sehHeedUserNot", "not");this.put("sehHeedUser", sehHeedUser);return this;};
		
		
	this.sehHeedUserIn=function(ids){
		if(this.proxy)return this.getProxy().sehHeedUserIn(ids);  this.put("sehHeedUserIn", ids);return this;
	};	
		 
	
	
	/** 处理方式 [非空]   0:消息提示 1:消息通知 3:邮件通知 2:短信通知 4:微信通知     **/
	this.sehHeedType=function(sehHeedType){if(this.proxy)return this.getProxy().sehHeedType(sehHeedType);  this.put("sehHeedType", sehHeedType);return this;};
	/** and seh_heed_type is null */
	this.sehHeedTypeNull=function(){if(this.proxy)return this.getProxy().sehHeedTypeNull();if(this.get("sehHeedTypeNot")==null)this.put("sehHeedTypeNot", "");this.put("sehHeedType", null);return this;};
	/** not .... */
	this.sehHeedTypeNot=function(){if(this.proxy)return this.getProxy().sehHeedTypeNot();this.put("sehHeedTypeNot", "not");return this;};
	this.sehHeedTypeNotNull=function(){if(this.proxy)return this.getProxy().sehHeedTypeNotNull();this.put("sehHeedTypeNot", "not");this.put("sehHeedType", null);return this;};
	this.sehHeedTypeNot=function(sehHeedType){if(this.proxy)return this.getProxy().sehHeedTypeNot(sehHeedType);this.put("sehHeedTypeNot", "not");this.put("sehHeedType", sehHeedType);return this;};
		
		 
	
	
	/** 修改时间 [非空]       **/
	this.sehUpdateTime=function(sehUpdateTime){if(this.proxy)return this.getProxy().sehUpdateTime(sehUpdateTime);  this.put("sehUpdateTime", sehUpdateTime);return this;};
	/** and seh_update_time is null */
	this.sehUpdateTimeNull=function(){if(this.proxy)return this.getProxy().sehUpdateTimeNull();if(this.get("sehUpdateTimeNot")==null)this.put("sehUpdateTimeNot", "");this.put("sehUpdateTime", null);return this;};
	/** not .... */
	this.sehUpdateTimeNot=function(){if(this.proxy)return this.getProxy().sehUpdateTimeNot();this.put("sehUpdateTimeNot", "not");return this;};
	this.sehUpdateTimeNotNull=function(){if(this.proxy)return this.getProxy().sehUpdateTimeNotNull();this.put("sehUpdateTimeNot", "not");this.put("sehUpdateTime", null);return this;};
	this.sehUpdateTimeNot=function(sehUpdateTime){if(this.proxy)return this.getProxy().sehUpdateTimeNot(sehUpdateTime);this.put("sehUpdateTimeNot", "not");this.put("sehUpdateTime", sehUpdateTime);return this;};
		
	/** and seh_update_time >= ? */
	this.sehUpdateTimeStart=function(start){if(this.proxy)return this.getProxy().sehUpdateTimeStart(start);this.put("sehUpdateTimeStart", start);return this;};			
	/** and seh_update_time <= ? */
	this.sehUpdateTimeEnd=function(end){if(this.proxy)return this.getProxy().sehUpdateTimeEnd(end);this.put("sehUpdateTimeEnd", end);return this;};
		
		 
	
	
	/** 添加时间 [非空]       **/
	this.sehAddTime=function(sehAddTime){if(this.proxy)return this.getProxy().sehAddTime(sehAddTime);  this.put("sehAddTime", sehAddTime);return this;};
	/** and seh_add_time is null */
	this.sehAddTimeNull=function(){if(this.proxy)return this.getProxy().sehAddTimeNull();if(this.get("sehAddTimeNot")==null)this.put("sehAddTimeNot", "");this.put("sehAddTime", null);return this;};
	/** not .... */
	this.sehAddTimeNot=function(){if(this.proxy)return this.getProxy().sehAddTimeNot();this.put("sehAddTimeNot", "not");return this;};
	this.sehAddTimeNotNull=function(){if(this.proxy)return this.getProxy().sehAddTimeNotNull();this.put("sehAddTimeNot", "not");this.put("sehAddTime", null);return this;};
	this.sehAddTimeNot=function(sehAddTime){if(this.proxy)return this.getProxy().sehAddTimeNot(sehAddTime);this.put("sehAddTimeNot", "not");this.put("sehAddTime", sehAddTime);return this;};
		
	/** and seh_add_time >= ? */
	this.sehAddTimeStart=function(start){if(this.proxy)return this.getProxy().sehAddTimeStart(start);this.put("sehAddTimeStart", start);return this;};			
	/** and seh_add_time <= ? */
	this.sehAddTimeEnd=function(end){if(this.proxy)return this.getProxy().sehAddTimeEnd(end);this.put("sehAddTimeEnd", end);return this;};
		
		 
	
	
	/** 状态 [非空]   1:正常 0:无效     **/
	this.sehStatus=function(sehStatus){if(this.proxy)return this.getProxy().sehStatus(sehStatus);  this.put("sehStatus", sehStatus);return this;};
	/** and seh_status is null */
	this.sehStatusNull=function(){if(this.proxy)return this.getProxy().sehStatusNull();if(this.get("sehStatusNot")==null)this.put("sehStatusNot", "");this.put("sehStatus", null);return this;};
	/** not .... */
	this.sehStatusNot=function(){if(this.proxy)return this.getProxy().sehStatusNot();this.put("sehStatusNot", "not");return this;};
	this.sehStatusNotNull=function(){if(this.proxy)return this.getProxy().sehStatusNotNull();this.put("sehStatusNot", "not");this.put("sehStatus", null);return this;};
	this.sehStatusNot=function(sehStatus){if(this.proxy)return this.getProxy().sehStatusNot(sehStatus);this.put("sehStatusNot", "not");this.put("sehStatus", sehStatus);return this;};
		
		
	this.sehStatusIn=function(ids){
		if(this.proxy)return this.getProxy().sehStatusIn(ids);  this.put("sehStatusIn", ids);return this;
	};	
		 
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有事件关注 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/systematic/eventheed.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取事件关注分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/systematic/eventheed.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取事件关注 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/systematic/eventheed.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

SrvEventHeed.get = function(id){
	var protocol = ux.ajax("/admin/systematic/eventheed.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.srvEventHeed;
	return null;
}

SrvEventHeed.where = new SrvEventHeed.Where(0,true);